package 并发工具类CountDownLatch;

import java.util.concurrent.CountDownLatch;

public class SonThread2 extends Thread {
    private CountDownLatch countDownLatch;
    public SonThread2(CountDownLatch countDownLatch) {
        this.countDownLatch = countDownLatch;
    }
    @Override
    public void run() {
        System.out.println("也吃饺子");
        countDownLatch.countDown();
    }
}
